// middleware/auth.js
const authMiddleware = (req, res, next) => {
  // 简单的认证逻辑，实际项目中应使用JWT或其他认证方式
  console.log('Authentication middleware called');
  req.user = { id: 1, username: 'demo_user' }; // 模拟用户数据
  next();
};

module.exports = authMiddleware;